home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news text
| default
| |
99%
| file
| C source, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 31 2e 63 72 69 73 |Path: ne|ws1.cris|
|00000010| 2e 63 6f 6d 21 6e 65 77 | 73 0a 46 72 6f 6d 3a 20 |.com!new|s.From: |
|00000020| 22 4a 61 6d 65 73 20 45 | 2e 20 46 75 6c 6c 65 72 |"James E|. Fuller|
|00000030| 22 20 3c 6a 65 66 40 69 | 78 2e 6e 65 74 63 6f 6d |" <jef@i|x.netcom|
|00000040| 2e 63 6f 6d 3e 0a 4e 65 | 77 73 67 72 6f 75 70 73 |.com>.Ne|wsgroups|
|00000050| 3a 20 63 6f 6d 70 2e 6c | 61 6e 67 2e 63 0a 53 75 |: comp.l|ang.c.Su|
|00000060| 62 6a 65 63 74 3a 20 52 | 65 3a 20 48 45 4c 50 20 |bject: R|e: HELP |
|00000070| 6f 6e 20 73 74 72 69 6e | 67 20 66 75 6e 63 74 69 |on strin|g functi|
|00000080| 6f 6e 73 20 3f 3f 3f 3f | 0a 44 61 74 65 3a 20 57 |ons ????|.Date: W|
|00000090| 65 64 2c 20 30 36 20 4d | 61 72 20 31 39 39 36 20 |ed, 06 M|ar 1996 |
|000000a0| 30 32 3a 31 33 3a 33 39 | 20 2d 30 37 30 30 0a 4f |02:13:39| -0700.O|
|000000b0| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 3a 20 46 75 6c |rganizat|ion: Ful|
|000000c0| 6c 65 72 20 26 20 53 74 | 6f 6e 65 0a 4d 65 73 73 |ler & St|one.Mess|
|000000d0| 61 67 65 2d 49 44 3a 20 | 3c 33 31 33 44 35 37 34 |age-ID: |<313D574|
|000000e0| 33 2e 36 33 45 41 40 69 | 78 2e 6e 65 74 63 6f 6d |3.63EA@i|x.netcom|
|000000f0| 2e 63 6f 6d 3e 0a 52 65 | 66 65 72 65 6e 63 65 73 |.com>.Re|ferences|
|00000100| 3a 20 3c 33 31 33 44 45 | 41 37 33 2e 37 35 30 35 |: <313DE|A73.7505|
|00000110| 40 6d 73 6d 61 69 6c 2e | 73 74 2e 73 74 65 6d 73 |@msmail.|st.stems|
|00000120| 2e 63 6f 6d 3e 0a 4e 4e | 54 50 2d 50 6f 73 74 69 |.com>.NN|TP-Posti|
|00000130| 6e 67 2d 48 6f 73 74 3a | 20 63 6e 63 30 31 36 30 |ng-Host:| cnc0160|
|00000140| 34 32 2e 63 6f 6e 63 65 | 6e 74 72 69 63 2e 6e 65 |42.conce|ntric.ne|
|00000150| 74 0a 4d 69 6d 65 2d 56 | 65 72 73 69 6f 6e 3a 20 |t.Mime-V|ersion: |
|00000160| 31 2e 30 0a 43 6f 6e 74 | 65 6e 74 2d 54 79 70 65 |1.0.Cont|ent-Type|
|00000170| 3a 20 74 65 78 74 2f 70 | 6c 61 69 6e 3b 20 63 68 |: text/p|lain; ch|
|00000180| 61 72 73 65 74 3d 75 73 | 2d 61 73 63 69 69 0a 43 |arset=us|-ascii.C|
|00000190| 6f 6e 74 65 6e 74 2d 54 | 72 61 6e 73 66 65 72 2d |ontent-T|ransfer-|
|000001a0| 45 6e 63 6f 64 69 6e 67 | 3a 20 37 62 69 74 0a 58 |Encoding|: 7bit.X|
|000001b0| 2d 4d 61 69 6c 65 72 3a | 20 4d 6f 7a 69 6c 6c 61 |-Mailer:| Mozilla|
|000001c0| 20 32 2e 30 20 28 57 69 | 6e 4e 54 3b 20 49 29 0a | 2.0 (Wi|nNT; I).|
|000001d0| 54 6f 3a 20 6b 69 6d 20 | 68 61 69 20 3c 4b 69 6d |To: kim |hai <Kim|
|000001e0| 5f 48 61 69 2e 4e 67 40 | 6d 73 6d 61 69 6c 2e 73 |_Hai.Ng@|msmail.s|
|000001f0| 74 2e 73 74 65 6d 73 2e | 63 6f 6d 3e 0a 0a 6b 69 |t.stems.|com>..ki|
|00000200| 6d 20 68 61 69 20 77 72 | 6f 74 65 3a 0a 3e 20 0a |m hai wr|ote:.> .|
|00000210| 3e 20 50 6c 65 61 73 65 | 20 68 65 6c 70 20 6d 65 |> Please| help me|
|00000220| 2e 0a 3e 20 0a 3e 20 43 | 61 6e 20 61 6e 79 62 6f |..> .> C|an anybo|
|00000230| 64 79 20 74 65 6c 6c 20 | 6d 65 20 69 66 20 74 68 |dy tell |me if th|
|00000240| 65 72 65 20 69 73 20 73 | 69 6d 69 6c 61 72 20 66 |ere is s|imilar f|
|00000250| 75 6e 63 74 69 6f 6e 20 | 69 6e 20 70 6c 61 63 65 |unction |in place|
|00000260| 20 6f 66 20 22 73 74 72 | 73 65 74 28 29 22 20 3f | of "str|set()" ?|
|00000270| 0a 3e 20 4f 72 20 69 73 | 20 74 68 65 72 65 20 61 |.> Or is| there a|
|00000280| 6e 6f 74 68 65 72 20 77 | 61 79 20 6f 66 20 64 6f |nother w|ay of do|
|00000290| 69 6e 67 20 74 68 69 73 | 20 3a 0a 3e 20 49 20 6e |ing this| :.> I n|
|000002a0| 65 65 64 20 74 6f 20 72 | 65 69 6e 69 74 69 61 6c |eed to r|einitial|
|000002b0| 69 7a 65 20 61 20 63 68 | 61 72 20 70 6f 69 6e 74 |ize a ch|ar point|
|000002c0| 65 72 20 64 75 72 69 6e | 67 20 72 75 6e 2d 74 69 |er durin|g run-ti|
|000002d0| 6d 65 2e 20 54 68 65 20 | 73 74 61 74 65 6d 65 6e |me. The |statemen|
|000002e0| 74 0a 3e 20 63 68 61 72 | 20 2a 70 3b 20 70 20 3d |t.> char| *p; p =|
|000002f0| 20 22 22 3b 20 69 73 20 | 63 61 75 73 69 6e 67 20 | ""; is |causing |
|00000300| 6d 65 20 70 72 6f 62 6c | 65 6d 73 2e 20 49 20 63 |me probl|ems. I c|
|00000310| 61 6e 27 74 20 75 73 65 | 20 22 73 74 72 73 65 74 |an't use| "strset|
|00000320| 28 70 2c 27 5c 30 27 29 | 22 0a 3e 20 62 65 63 61 |(p,'\0')|".> beca|
|00000330| 75 73 65 20 74 68 65 20 | 63 6f 6d 70 69 6c 65 72 |use the |compiler|
|00000340| 20 6f 6e 20 74 68 65 20 | 75 6e 69 78 20 6d 61 63 | on the |unix mac|
|00000350| 68 69 6e 65 20 64 6f 65 | 73 6e 27 74 20 72 65 63 |hine doe|sn't rec|
|00000360| 6f 67 6e 69 73 65 20 74 | 68 65 20 66 75 6e 63 74 |ognise t|he funct|
|00000370| 69 6f 6e 2e 0a 3e 20 20 | 0a 57 68 61 74 2c 20 65 |ion..> |.What, e|
|00000380| 78 61 63 74 6c 79 2c 20 | 64 6f 20 79 6f 75 20 77 |xactly, |do you w|
|00000390| 61 6e 74 20 74 6f 20 64 | 6f 3f 0a 0a 63 68 61 72 |ant to d|o?..char|
|000003a0| 20 2a 70 20 3b 0a 70 20 | 3d 20 4e 55 4c 4c 20 3b | *p ;.p |= NULL ;|
|000003b0| 0a 0a 77 69 6c 6c 20 67 | 65 74 20 79 6f 75 20 61 |..will g|et you a|
|000003c0| 20 70 6f 69 6e 74 65 72 | 20 77 69 74 68 20 74 68 | pointer| with th|
|000003d0| 65 20 76 61 6c 75 65 20 | 30 2c 20 77 68 69 63 68 |e value |0, which|
|000003e0| 20 64 6f 65 73 6e 27 74 | 20 70 6f 69 6e 74 20 61 | doesn't| point a|
|000003f0| 74 20 0a 61 6e 79 74 68 | 69 6e 67 20 61 6e 64 20 |t .anyth|ing and |
|00000400| 64 6f 65 73 6e 27 74 20 | 61 66 66 65 63 74 20 61 |doesn't |affect a|
|00000410| 6e 79 20 64 61 74 61 20 | 66 6f 72 6d 65 72 6c 79 |ny data |formerly|
|00000420| 20 70 6f 69 6e 74 65 64 | 20 74 6f 20 62 79 20 70 | pointed| to by p|
|00000430| 2e 0a 49 66 20 70 20 70 | 6f 69 6e 74 73 20 74 6f |..If p p|oints to|
|00000440| 20 6d 65 6d 6f 72 79 20 | 61 6c 6c 6f 63 61 74 65 | memory |allocate|
|00000450| 64 20 62 79 20 6d 61 6c | 6c 6f 63 28 29 2c 20 79 |d by mal|loc(), y|
|00000460| 6f 75 20 77 6f 6e 27 74 | 20 62 65 20 61 62 6c 65 |ou won't| be able|
|00000470| 20 0a 74 6f 20 66 72 65 | 65 28 29 20 69 74 20 74 | .to fre|e() it t|
|00000480| 68 72 6f 75 67 68 20 70 | 2e 0a 0a 49 66 20 74 68 |hrough p|...If th|
|00000490| 65 72 65 20 61 72 65 20 | 64 61 74 61 20 70 6f 69 |ere are |data poi|
|000004a0| 6e 74 65 64 20 74 6f 20 | 62 79 20 70 20 77 68 69 |nted to |by p whi|
|000004b0| 63 68 20 79 6f 75 20 77 | 61 6e 74 20 74 6f 20 73 |ch you w|ant to s|
|000004c0| 65 74 20 74 6f 20 74 68 | 65 20 0a 6e 75 6c 6c 20 |et to th|e .null |
|000004d0| 73 74 72 69 6e 67 2c 20 | 74 68 65 6e 0a 2a 70 20 |string, |then.*p |
|000004e0| 3d 20 27 5c 30 27 20 3b | 0a 77 69 6c 6c 20 64 6f |= '\0' ;|.will do|
|000004f0| 20 69 74 20 77 69 74 68 | 6f 75 74 20 63 68 61 6e | it with|out chan|
|00000500| 67 69 6e 67 20 61 6e 79 | 74 68 69 6e 67 20 62 75 |ging any|thing bu|
|00000510| 74 20 74 68 65 20 66 69 | 72 73 74 20 63 68 61 72 |t the fi|rst char|
|00000520| 2e 0a 0a 49 66 20 79 6f | 75 20 77 61 6e 74 20 74 |...If yo|u want t|
|00000530| 6f 20 73 65 74 20 74 68 | 65 20 65 6e 74 69 72 65 |o set th|e entire|
|00000540| 20 63 6f 6e 74 65 6e 74 | 73 20 6f 66 20 2a 70 20 | content|s of *p |
|00000550| 74 6f 20 30 2c 20 74 68 | 65 6e 20 74 72 79 0a 6d |to 0, th|en try.m|
|00000560| 65 6d 73 65 74 28 70 2c | 20 30 2c 20 73 74 72 6c |emset(p,| 0, strl|
|00000570| 65 6e 28 70 29 29 20 3b | 20 0a 0a 4a 69 6d 20 46 |en(p)) ;| ..Jim F|
|00000580| 75 6c 6c 65 72 0a | |uller. | |
+--------+-------------------------+-------------------------+--------+--------+